<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

    <a th:href="@{/toAdd}">添加</a>

    <table border="1" cellspacing="0">
        <tr>
            <td>编号</td>
            <td>姓名</td>
            <td>性别</td>
            <td>工资</td>
            <td>时间</td>
            <td>部门</td>
            <td>操作</td>
        </tr>
        <tr th:each="emp:${list}">
            <td th:text="${emp.eid}"></td>
            <td th:text="${emp.ename}"></td>
            <td th:text="${emp.sex}"></td>
            <td th:text="${emp.salary}"></td>
            <td th:text="${emp.createtime}"></td>
            <td th:text="${emp.dname}"></td>
            <td>
                <a th:href="@{/findByEid(eid=${emp.eid})}">修改</a>
                <a th:href="@{/delete(eid=${emp.eid})}">删除</a>
            </td>
        </tr>
    </table>

</body>
</html>